package com.hyh.baowenlioaworking.commom;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @BelongsPackage: com.hyh.baowenlioaworking.commom
 * @ClassName SecurityConfig
 * @Author: hyhWTX
 * @CreateTime: 2023-07-22  14:54
 * @Description: 密码配置类
 * @Version: 1.0
 */
@Configuration
public class SecurityConfig {

    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}
